home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / GPC2952B.ZIP / doc / gpc / docdemos / syscall.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-02-09  |  205 b   |  12 lines

  1. program SysCall;
  2.  
  3. function System (Name : CString): Integer; asmname 'system';
  4.  
  5. var
  6.   Result : Integer;
  7.  
  8. begin
  9.   Result := System ('ls -l');
  10.   WriteLn ('system() call returned : ', Result)
  11. end.
  12.